<div>&nbsp</div>
<h4 class="modal-title" id="myModalLabel"> &nbsp 该实例历史报告记录</h4>
<div>&nbsp &nbsp</div>
<table class="table table-striped table-bordered table-hover">
    <thead>
    <tr>
        <th>实例名</th>
        <th>执行耗时(s)</th>
        <th>执行状态</th>
        <th>报告内容</th>
        <th>生成时间</th>
    </tr>
    </thead>
    <tbody >
    {% for i in result %}
        <tr>
            <td >{{ i.db_name }}</td>
            <td >{{ i.sub_time }}</td>
            {% if i.status == 'SUCCESS' %}
            <td style="color: green">{{ i.status }}</td>
            {% else %}
            <td style="color: red">{{ i.status }}</td>
            {% endif %}
            <td ><a href="/oratk_app/oratk_monitor_view_monitor_report?nid={{ i.id }}" target="_blank">查看报告内容</a></td>
            <td >{{ i.start_time }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>